package com.wyt.cloud.utils.query.reqvo;

import com.wyt.cloud.utils.page.PageRequest;
import com.wyt.cloud.utils.query.OrderByDirectionEnum;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * used to execute query with pageAble
 */
@Data
public class OrderByWithPageRequest extends PageRequest {
    /**
     * you can transfer the field from frontEnd, and if you haven't transfer the field,system will transfer value by OrderByParam Annotation,
     * if you also haven't set the OrderByParam Annotation,system will execute sql with no order;
     */
    private Map<String, OrderByDirectionEnum> sortFields;
}
